{% extends "base.html" %}

{% block content %}
{% for article in articles %}
<div class="blog-post underline">

    <div class="content">
    <h2 class="blog-post-title"><a href="/article/{{ article.id }}.html">{{ article.title }}</a></h2>
    <!--<p class="blog-post-meta">{{ article.create_at | date:"Y年Fj日" }} 作者: {{ article.author }}</p>-->
    <p>{{ article.digest }}</p>
    </div>
</div>
{% endfor %}
{% endblock %}

{% block pager %}
<nav>
    <ul class="pager">
        {% if articles.has_previous %}
        <li><a href="/page/{{articles.previous_page_number}}.html">上一页</a></li>
        {% endif %}

        {% if articles.has_next %}
        <li class="pull-right"><a href="/page/{{articles.next_page_number}}.html">下一页</a></li>
        {% endif %}
    </ul>
</nav>
{% endblock %}